<template>
  <div>
    <NavType/>
    <List/>
    <Recommend/>
    <rank/>
    <floor v-for="floor in floorList" :key="floor.id" :floor='floor'  />
    <Brand/>
  </div>
</template>

<script>

import Brand from "./Brand"
import Floor from "./Floor"
import Like from "./Like"
import Rank from "./Rank"
import List from "./List"
import Recommend from "./Recommend"
import { mapActions, mapState } from 'vuex'

export default {
  components:{
    Like,
    List,
    Brand,
    Floor,
    Rank,
    Recommend
  },
  methods: {
    ...mapActions('home', ['getFloorList'])
  },
  computed:{
    ...mapState('home', ['floorList'])
  },
  mounted(){
    this.getFloorList()
  }



}
</script>

<style>

</style>